-
Notifications
You must be signed in to change notification settings - Fork 38.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tests and set-image option to kubectl debug #96058
Add tests and set-image option to kubectl debug #96058
Conversation
ffd72be
to
7174800
Compare
kubectl alpha debug mypod --copy-to=my-debugger --set-image=*=busybox | ||
|
||
# Create a copy of mypod adding a debug container and changing container images | ||
kubectl alpha debug mypod -it --copy-to=my-debugger --image=debian --set-image=app=app:debug,sidecar=sidecar:debug | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@soltysh When implementing image mutation I realized it might be more intuitive to have a separate flag, using --image
for adding a new debug container and --set-image
for changing the images of existing containers. With this syntax it's possible to perform both operations in a single command, but mainly I just think the syntax is clearer.
Could you have a look at these examples and let me know what you think? For reference, we previously discussed overloading the --image
flag for both uses
7174800
to
805fa4c
Compare
805fa4c
to
2a67420
Compare
/assign @soltysh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
please fix the error messages, since there's this many 😉
2a67420
to
ee9f11b
Compare
@soltysh thanks! Ok, I think I've fixed all the error messages. I'll add pwittrock for the visible_to change. /assign @pwittrock |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Manually adding approve since this is kubectl targeted change. |
/triage accepted |
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: soltysh, verb The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest Review the full test history for this PR. Silence the bot with an |
1 similar comment
/retest Review the full test history for this PR. Silence the bot with an |
What type of PR is this?
/kind feature
/sig cli
/priority important-soon
What this PR does / why we need it: Implements feature and tests for kubernetes/enhancements#1441
Which issue(s) this PR fixes:
Fixes #94855
Special notes for your reviewer: Slight change in KEP for how image mutations are specified. See examples in
debug.go
.Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: